# import base
from base import test
print("1")

s = "{{}}ff}{fdf{{sfdfd{}}"
s = s.replace("{", "[")
print(s.replace('}', ']'))